package baiwa.rta.service;

import java.util.List;

import baiwa.rta.model.DataTableModel;
import baiwa.rta.model.User;

public interface UserService {

	public List<User> findAll();

	public List<User> findUserByCriteria(User user);

	public User findById(Integer id);

	public User findByUsername(String username);

	public DataTableModel<User> getUsersDataTable(User user, int iDisplayStart,	int iDisplayLength);
        
    public void save(User user);
    
    public void update(User user);
    
    public void delete(User user);
    
    public boolean deleteByUsername(String username) throws Exception;

	public User findLoginUsername(String username);
        
}
